package com.example.demo.behavior.mediator;

import lombok.Data;

/**
 * @Desc:
 * @Author zzz
 * @Date 2021/2/24
 * @Version V1.0
 */
@Data
public class Seller extends Customer {

    public Seller(String name) {
        super.setName(name);
    }

    @Override
    void send(String msg) {
        System.out.println("卖方" + super.getName() + ":" + msg);
    }

    @Override
    void receive(String from, String msg) {
        System.out.println("卖方收到消息-买方" + from + ":" + msg);
    }

}
